package com.test.liuhb.test;

import android.app.Activity;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.widget.Button;
import android.widget.Toast;

/**
 * Created by liu.hb on 2018/2/13.
 */
import org.androidannotations.annotations.AfterViews;
import org.androidannotations.annotations.Click;
import org.androidannotations.annotations.EActivity;
import org.androidannotations.annotations.ViewById;
@EActivity(R.layout.aa_main)
public class AAFrameActivity extends Activity {
    @ViewById(R.id.btn)
    Button btn;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

    }
    @Click(R.id.btn)
    void btnClick() {
        Toast.makeText(AAFrameActivity.this,"aaa",Toast.LENGTH_LONG).show();
    }
    //3.初始化控件显示
    @AfterViews
    void initViews() {
        // 初始化控件
        btn.setText("button 按钮");
    }

}
